package com.wmyg.antifake.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-05
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Data
@Table(name = "wx_gsone")
public class GsOne {

    @Id
    @Column(name = "gtin")
    private String gtin;

    @Column(name = "valid_state")
    private Integer validState;

    @Column(name = "expired_time")
    private Date expiredTime;

    @Lob
    @Column(name = "content")
    private String content;

}
